package com.fuyao.cloud.asset;

import com.fuyao.cloud.common.feign.annotation.EnableCloudFeignClients;
import com.fuyao.cloud.common.security.annotation.EnableCloudResourceServer;
import com.fuyao.cloud.common.swagger.annotation.EnableCloudSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author cloud archetype
 * <p>
 * 空间微服务项目启动类
 */
@EnableCloudSwagger2
@EnableCloudFeignClients
@EnableDiscoveryClient
@EnableCloudResourceServer
@SpringBootApplication
@ComponentScan(value = {"com.fuyao.cloud.space","com.fuyao.cloud.asset"})
@MapperScan(value =
        {"com.fuyao.cloud.space.*.mapper","com.fuyao.cloud.asset.*.mapper"}
)
public class CloudAssetApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudAssetApplication.class, args);
    }
}
